package cn.sdhuijin.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @author sunp@sdhuijin.cn:
 * @version 创建时间：2015年4月29日 上午10:43:32 类说明
 */

@Entity
@Table(name = "extrascore")
public class ExtraScore extends IdEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	private double score;

	private Date date;

	private String operation;

	private String description;

	@ManyToOne
	private Target target;

	@ManyToOne
	private Standard standard;

	/**
	 * @return the standard
	 */
	public Standard getStandard() {
		return standard;
	}

	/**
	 * @param standard
	 *            the standard to set
	 */
	public void setStandard(Standard standard) {
		this.standard = standard;
	}

	/**
	 * @return the object
	 */
	public Target getObject() {
		return target;
	}

	/**
	 * @param object
	 *            the object to set
	 */
	public void setObject(Target object) {
		this.target = object;
	}

	/**
	 * @return the score
	 */
	public double getScore() {
		return score;
	}

	/**
	 * @param score
	 *            the score to set
	 */
	public void setScore(double score) {
		this.score = score;
	}

	/**
	 * @return the date
	 */
	public Date getDate() {
		return date;
	}

	/**
	 * @param date
	 *            the date to set
	 */
	public void setDate(Date date) {
		this.date = date;
	}

	/**
	 * @return the operation
	 */
	public String getOperation() {
		return operation;
	}

	/**
	 * @param operation
	 *            the operation to set
	 */
	public void setOperation(String operation) {
		this.operation = operation;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description
	 *            the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

}
